package cn.service.data_dictionary;

import cn.mapper.data_dictionary.Data_dictionaryMapper;
import cn.pojo.Data_dictionary;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Transactional(rollbackFor = Throwable.class)
@Service("data_dictionaryService")
public class Data_dictionaryServiceImpl implements Data_dictionaryService {
    @Resource
    private Data_dictionaryMapper data_dictionaryMapper;

    @Override
    public List<Data_dictionary> getData_dictionaryStatus() {
        return data_dictionaryMapper.getData_dictionaryStatus();
    }

    @Override
    public List<Data_dictionary> getData_dictionaryFlatfrom() {
        return data_dictionaryMapper.getData_dictionaryFlatfrom();
    }

    @Override
    public int tStatus(Integer id) {
        return data_dictionaryMapper.tStatus(id);
    }

    @Override
    public int fStatus(Integer id) {
        return data_dictionaryMapper.fStatus(id);
    }
}
